Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional previous & timestamps flags to log requests #35

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

ewilken
Copy link
Contributor

@ewilken ewilken commented Sep 5, 2023

This PR introduces the optional boolean arguments previous and timestamps to the logs() method and the optional boolean argument timestamps to the follow() method, to be able to request a pod's previously terminated container from the API and to be able to toggle timestamps on the log responses and streams on and off.

I've initialized all arguments as false to be able to just ignore them without breaking backwards compatibility. Please let me know if this makes sense to you the way it's implemented or if you'd prefer it differently.

And again, thanks for all the effort you're putting into this project! 🙂

@ewilken ewilken marked this pull request as draft September 5, 2023 20:16
@ewilken ewilken marked this pull request as ready for review September 6, 2023 08:21
@iabudiab
Copy link
Member

@ewilken Nice! Thanks for the PR 👍

@iabudiab iabudiab merged commit adca31d into swiftkube:main Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants